package org.yar.reader;

public class TextChunk {
	private long startByte;
	private String text;
	
	public TextChunk(long startByte, String text)
	{
		this.startByte = startByte;
		this.text = text;
	}

	public long getStartByte() {
		return startByte;
	}

	public void setStartByte(int startByte) {
		this.startByte = startByte;
	}
	
	public long getEndByte() {
		return startByte + text.getBytes().length;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	@Override
	public String toString()
	{
		return text;
	}
}
